package com.example.demo.lab2.service.impl;


import com.example.demo.lab2.entity.Employees;
import com.example.demo.lab2.entity.Jobs;
import com.example.demo.lab2.mapper.EmployeesMapper;
import com.example.demo.lab2.mapper.JobsMapper;
import com.example.demo.lab2.service.EmployeesService;
import com.example.demo.lab2.service.JobsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

@Service
public class JobsServiceImpl implements JobsService {
    @Autowired
    private JobsMapper jobsMapper;

    @Override
    public int insert(Jobs jobs) {
        int insert = jobsMapper.insert(jobs);
        return insert;
    }

    @Override
    public int delete(String id) {
        return jobsMapper.delete(id);
    }

    @Override
    public int update(Jobs jobs) {
        return jobsMapper.update(jobs);
    }

    public List<Jobs> list() {
        List<Jobs> list = jobsMapper.list();
        return list;
    }
}
